package com.zxjbyte.yiyi.framework.redis.lock;

import com.zxjbyte.yiyi.framework.redis.lock.executor.RLockExecutor;
import lombok.Builder;
import lombok.Getter;

/**
 * 分布式锁信息
 * @Author zhangxingjia
 * @Date 2023/4/14 18:24
 * @Version: 1.0
 */
@SuppressWarnings("rawtypes")
@Builder
@Getter
public class RLockInfo {

    /**
     * 锁key
     */
    private String lockKey;

    /**
     * 获取锁时最多等待的时间
     */
    private Long waitTime;

    /**
     * 锁的最大持有时间
     */
    private Long leaseTime;

    /**
     * 获取锁次数
     */
    private int acquireCount;

    /**
     * 锁实例
     */
    private Object lockInst;

    /**
     * 锁执行器
     */
    private RLockExecutor lockExecutor;
}
